<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.springframework.org/schema/jdbc">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://unpkg.com/gojs/release/go.js"></script>
    <script th:inline="javascript">
        function init() {
            var $ = go.GraphObject.make;
            var myDiagram =
                $(go.Diagram, "myDiagramDiv",
                    {
                        "undoManager.isEnabled": true,
                        layout: $(go.TreeLayout, // specify a Diagram.layout that arranges trees
                            { angle: 90, layerSpacing: 35 })
                    });
            myDiagram.nodeTemplate =
                $(go.Node, "Horizontal",
                    { background: "#44CCFF" },
                    $(go.Picture,
                        { margin: 10, width: 50, height: 50, background: "red" },
                        new go.Binding("source")),
                    $(go.TextBlock, "Default Text",
                        { margin: 12, stroke: "white", font: "bold 16px sans-serif" },
                        new go.Binding("text", "name"))
                );

            var model = $(go.GraphLinksModel);

            model.linkDataArray=  /*[[${asyncFlowNodeLinkData}]]*/ null;
            model.nodeDataArray=  /*[[${asyncFlowNodeDataArray}]]*/ null;

            myDiagram.model = model;
        }
    </script>
</head>
<body onload="init()">
<div id="myDiagramDiv" style="width:1400px; height:1050px;border:1px solid black;"></div>
</body>
</html>